﻿-- =============================================
-- Author:		Andreas Könighofer (IT-eXperience)
-- Create date: 14.01.2009
-- Description:	Inserts new worker into resourcetable
-- =============================================
CREATE PROCEDURE [dbo].[CreateWorker] 
	-- Add the parameters for the stored procedure here
	@LocationID SMALLINT,
	@RessourceName NVARCHAR(100),
	@SSNo NVARCHAR(50)
AS
BEGIN
	-- SET NOCOUNT ON added to prevent extra result sets from
	-- interfering with SELECT statements.
	SET NOCOUNT ON;

   DECLARE @ReturnValue INT
   EXECUTE @ReturnValue = [BigDays2009].[dbo].[CreateResource] 
   @LocationID
  ,@RessourceName
  ,@SSNo
  , NULL
  , NULL
  , NULL
  
  RETURN @ReturnValue
END

---- end script CreateWorker stored procedure ----
---- end script create stored procedures -------

---- start script read stored procedures -------
---- start script ReadAvailableMachine stored procedure ----

